﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WIC_Data_Manager
{
    class Globals
    {
        public static string ServerIPAddress = ""; //76.18.250.63
        public const string DataBaseUserName = "dbAdmin";
        public const string DataBasePassword = "ecbdb882ae865a07d87611437fda0772";
        public static List<string> Months = new List<string>{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" };
        public static string CurrentlyLoggedIn;

        public static class Forms
        {
            public static fManager ManagerScreen;
            public static fAddClinic AddClinicScreen;
        }

        public static class DataBases
        {
            public static SQLDataBase Initiation;
            public static SQLDataBase Participation;
            public static SQLDataBase Users;
        }

        public static bool IsNumeric(string text)
        {
            int i;
            return Int32.TryParse(text, out i);
        }

        public static bool IsMonth(string text)
        {
            bool b = false;
            foreach (string month in Months)
            {
                if (text.Equals(month,StringComparison.CurrentCultureIgnoreCase)) b = true;
            }
            return b;
        }
    }
}
